﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Portal.API;
using System.Data;

public partial class Control_FeatureBanner : ModuleBase
{

    #region PageProperty

    public string Url
    {
        set { ViewState["Url"]=value;}
        get
        {
            object o = ViewState["Url"];
            return (o == null) ? "#" : (string)o;
        }
    }
    public string ImageUrl
    {
        set { ViewState["ImageUrl"] = value; }
        get
        {
            object o = ViewState["ImageUrl"];
            return (o == null) ? "#" : (string)o;
        }
    }
    #endregion
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnInit(EventArgs e)
    {
        this.InitModule("", "", "Mod_Banner", "", true);
        LoadConfig();
        base.OnInit(e);
    }
    protected void LoadConfig()
    {

        DataSet ds = this.ReadConfig();


        DataTable table = ds.Tables["Module"];
        DataRow row = table.Rows[0];
        ImageUrl = row["tb_ImageUrl"].ToString();
  
        // sb.Append(row["name"].ToString());
        // sb.Append(row["position"].ToString());
     

        // Label2.Text = (Portal.API.Language.GetText(this, "ErrorWritingModulesConfig"));
    }
}
